package com.starlink.model.dtomapper;

import com.starlink.model.domain.UserChildDO;
import com.starlink.model.request.UserChildRequest;
import com.starlink.model.vo.UserChildVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface UserChildDtoMapper {

    UserChildDtoMapper INSTANCE = Mappers.getMapper(UserChildDtoMapper.class);

    /**
    * DO to VO
    * @param userChildDO
    * @return
    */
    UserChildVO do2VO(UserChildDO userChildDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    UserChildDO request2DO(UserChildRequest request);
}
